import request from '@/utils/request_1'

// 新增库存记录
export const addStorageLog = (params: any) =>
  request({
    url: '/stockRecord',
    method: 'post',
    data: { ...params }
  })

// 修改库存记录
export const updateStorageLog = (params: any) =>
  request({
    url: '/stockRecord',
    method: 'put',
    data: { ...params }
  })

// 删除库存记录
export const deleteStorageLog = (params: any) =>
  request({
    url: '/stockRecord',
    method: 'delete',
    params
  })

// 查询全部库存记录
export const findAllStorageLog = (params: any) =>
  request({
    url: '/stockRecord/list',
    method: 'get',
    params
  })

// 分页查询库存记录
export const findAllStorageLogPaging = (params: any) =>
  request({
    url: '/stockRecord/page',
    method: 'get',
    params
  })

// 查询库存记录
export const findOneStorageLog = (id: number) =>
  request({
    url: `/stockRecord/${id}`,
    method: 'get'
  })
